<script>
	let arr = [1,2,3,4,6];
	for(let i = 0 ;i<arr.length;i++){
		console.log(arr[i])
		for(let k=0;k<arr[i];k++){
			document.write(`
				<img src="https://img0.baidu.com/it/u=3724162273,1888246603&fm=26&fmt=auto" width="30" height="30"/>
			`)
		}
		document.write("<br/>")
	}
</script>